]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell: Do not set XFixes input region on wayland compositors
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 31 Jan 2019 11:02:39 +0000 (12:02 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 24 May 2019 10:24:06 +0000 (12:24 +0200)
This is just needed on the X11 compositor, wayland compositors are known
for handling their own input.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/378

js/ui/layout.js
src/shell-global.c

index b98827a3ca823fbc37b694c6d4a66835ebedf00b..6f6677d642aa2e6062b63bf5860a4da2d252ef61 100644 (file)
@@ -1072,8 +1072,7 @@ var LayoutManager = GObject.registerClass({
             }
         }
 
-        if (!Meta.is_wayland_compositor())
-            global.set_stage_input_region(rects);
+        global.set_stage_input_region(rects);
         this._isPopupWindowVisible = isPopupMenuVisible;
 
         let workspaceManager = global.workspace_manager;
index 4295162a86d631df27ce5ff80d74f8fcf292fa9e..4ad23fdac0822edd6a4dbf1f18efcd210a5ef953 100644 (file)
@@ -642,6 +642,9 @@ shell_global_set_stage_input_region (ShellGlobal *global,
 
   g_return_if_fail (SHELL_IS_GLOBAL (global));
 
+  if (meta_is_wayland_compositor ())
+    return;
+
   nrects = g_slist_length (rectangles);
   rects = g_new (XRectangle, nrects);
   for (r = rectangles, i = 0; r; r = r->next, i++)